package cn.bytecollege.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Orders {
    @TableId(type = IdType.AUTO)
    private Integer orderId;
    private Integer userId;
    private Integer sendUserId;
    private String orderState;
    private Date orderDate;
    private Integer userAddressId;
    private String orderCheck;
    private List<OrderDetail> orderDetailList;
    private UserAddress userAddress;
    private Goods goods;
    private User user;
    private Double sum;
}
